using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Prisa.Entities
{
    public partial class DETALLE_CREDITO:BaseEntity
    {
        public int id { get; set; }
        public int ProductoId { get; set; }
        public int CreditoId { get; set; }

        [Display(Name = "Cantidad")]
        [Required(ErrorMessage = "La Cantidad es requerida")]  
        public int Cantidad { get; set; }

        [Display(Name = "Precio")]
        [Required(ErrorMessage = "El Precio es requerido")]
        public decimal Precio { get; set; }

        public decimal Monto { get { return Cantidad * Precio; } }

        public System.DateTime FechaDetalleCredito { get; set; }

        public bool Pagado{ get; set; }

        public bool PasadoVenta { get; set; }

        public virtual PRODUCTO PRODUCTO { get; set; }
        public virtual CREDITO CREDITO { get; set; }
    }
}
